﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleEdit.aspx.cs" Inherits="YBApproval.Pages.RoleEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户组管理</title>
    <link href="/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="/css/typography.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.9.1.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            height: 18px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
<div id="Div1" style="width:720px; margin:0px auto;">
                    <div class="mainContent">
                        <h1 id="H1">
                            <img id="titleIcon" class="pngfix" src="~/images/icon_findresources.png" runat="server" /><asp:Label
                                ID="ltlContentTitle" runat="server" Text="用户组管理" style=" vertical-align:bottom;"/></h1>
                        <div class="ContentBlock">
                            <div id="topo">                
                            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                    <tr>
                        <td style="background-image: url('../images/h1-bg.gif'); font-size: small;" align="center"
                            colspan="2">
                            <div  style="width:25px;height:19px;float:right; vertical-align:top;">
                                </div>
                            所有用户组列表</td>
                    </tr>
                    <tr >
                        <td style="width: 20%; text-align: left" nowrap="nowrap" colspan=2>
                            &nbsp;
                            <asp:GridView runat=server ID=gvRoles AutoGenerateColumns="False" Width="90%" 
                                onrowcommand="gvRoles_RowCommand" onrowdeleting="gvRoles_RowDeleting">
                            <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="组编号" Visible=false />
                                    <asp:BoundField DataField="Name" HeaderText="用户组名称" HeaderStyle-Width="30%"/>
                                    <asp:BoundField DataField="Desc" HeaderText="说明" HeaderStyle-Width="60%"/>
                                    <%--<asp:TemplateField HeaderText="操作" HeaderStyle-Width="10%">
                                    <AlternatingItemTemplate><asp:LinkButton ID=btnDel runat=server Text="删除"></asp:LinkButton></AlternatingItemTemplate>
                                    </asp:TemplateField>--%>
                                    <asp:TemplateField ShowHeader="False" HeaderStyle-Width="10%">
<ItemTemplate>
<asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" CommandName="Delete" Text="删除"  CommandArgument='<%# Bind("Id") %>' ></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
                                </Columns>
                                <HeaderStyle Font-Bold="False" Font-Size="Small" />
                            </asp:GridView>
                            &nbsp;
                        </td>
                    </tr></table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">                    
                    <tr>
                        <td style="background-image: url('../images/h1-bg.gif'); font-size: small;" align="center"
                            colspan="2">
                            <div  style="width:25px;height:19px;float:right; vertical-align:top;">
                                <asp:ImageButton runat=server ID=imbAddRole ImageUrl="~/images/add.png"
                                    ToolTip="新增" onclick="imbAddRole_Click" /></div>
                            编辑</td>
                    </tr><tr><td colspan=2 class="style1">
                            </td></tr>
                    <tr>
                    <td style="width: 15%; text-align: left" nowrap="nowrap">
                            &nbsp;<b><font color="#ff0000">*</font>名称：</b>
                        </td>
                        <td style="width: 85%; text-align: left" nowrap="nowrap">&nbsp;
                        <asp:TextBox runat="server" ID="txtName" Width="258px"  />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 15%; text-align: left" nowrap="nowrap">
                            &nbsp;<b>说明：</b>
                        </td>
                        <td style="width: 85%; text-align: left" >&nbsp;
                            <asp:TextBox ID="txtDesc" runat="server" Rows="4" TextMode="MultiLine" 
                                Width="497px"></asp:TextBox>
                        </td></tr>
                        </table>
                            <div style=" text-align:center;">
                                </div>
                            <div style=" text-align:center;">
                                <asp:Button ID="btnCancle" runat="server" onclick="btnCancle_Click" 
                                    style=" width:50px; height:20px;" Text="返回" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
    </form>
</body>
</html>
